package com.ycode.bang.anbang.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.ycode.bang.anbang.MyApp;
import com.ycode.bang.anbang.R;
import com.ycode.bang.anbang.baseui.BaseActivity;
import com.ycode.bang.anbang.baseui.BaseFragment;

import java.util.List;

import butterknife.ButterKnife;
import butterknife.InjectView;

public class ExpressMainActivity extends BaseActivity implements View.OnClickListener {
    @InjectView(R.id.title)
    TextView title;

    @InjectView(R.id.lin_one)
    LinearLayout linOne;
    @InjectView(R.id.lin_two)
    LinearLayout linTwo;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        addOurView(R.layout.activity_express_main);
        ButterKnife.inject(this);
        initView();
    }

    private void initView() {
        title.setText(R.string.kuaidishoufa);
        linOne.setOnClickListener(this);
        linTwo.setOnClickListener(this);
    }

    @Override
    protected void getSuccessRequest(Object response, int flag) {

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.lin_one:
                Intent intent = new Intent(this, GetExpressMainActivity.class);
                startActivity(intent);
                break;
            case R.id.lin_two:

                break;
            default:
                break;
        }
    }
}
